<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_login
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
?>
<?php if ($type == 'logout') : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form">
 <div class="logged flr">
                            <p>Du er logget på som: <span class="user"><?php echo htmlspecialchars($user->get('username'));?></span></p>
                        </div>
                        <div class="logged-btn">
                        	<a  style="cursor:pointer;" onclick="$('#btn_logout').click()" class="button logout flr">Log af</a>
                        	<a href="index.php?option=com_jobs&view=myjobs" class="button my-account flr">Min konto</a>
                        </div>
                  

	<div class="logout-button">
		<input type="submit" style="display:none;" id="btn_logout" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />
		<input type="hidden" name="option" value="com_users" />
		<input type="hidden" name="task" value="user.logout" />
		<input type="hidden" name="return" value="<?php echo $return; ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
</form>
<?php else : ?>
	<a class="button login flr" href="index.php/component/users/">Log på</a>	
<?php endif; ?>
